#include<my_global.h>
#include<my_sys.h>
#include<mysql.h>
#ifndef _OPDBCONFIG
#define _OPDBCONFIG
#include "hashmap.h"
typedef struct{
int id;
char *appname;
char *ip;
char *dbtable;
char *username;
char *password;
char *other;
}datapolicy;

typedef struct{
int id;
char *appname;
char *opname;
char *sql;
char *other;
}opconfig;
int read_dbconfig(hashmap **dpolicy,hashmap **oconfig);
char *getIp(char *dbsuffix,char *ippolicy)
#endif


